<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>微信支付</title>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>

</head>
<body>
    <h1>Hello World</h1>

    <script>
        wx.config({
            debug: true
            appId: 'wx49ff32c8e175ec26', // 必填，公众号的唯一标识
            timestamp: '1529984297', // 必填，生成签名的时间戳
            nonceStr: '7AQcLmorltTaj9Iy', // 必填，生成签名的随机串
            signature: '65a5557b5a77b97bb31e6267ac1bdadc9bc07c09',// 必填，签名
            jsApiList: [
                'chooseWXPay',
                'checkJsApi'] // 必填，需要使用的JS接口列表
        })
        wx.ready(function(){
            console.log("ready")
        });

        wx.error(function(res){
            console.log(res)
        });

    </script>
</body>
</html>